package com.zkyc.framework.common.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@TableName("job_file_verification")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class FileVerification {

    /**
     * 文件校验信息id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer cid;//ClientMsgid

    private String fileName;//文件名

    private String md5Code;//md5校验码

    private String path;//文件地址


    @JsonFormat( pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)//执行insert语句是自动填充
    private Date createDate;//创建时间

    @JsonFormat( pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)//执行insert语句时自动填充
    private Date updateDate;//更新时间

    @TableLogic//逻辑删除注解
    @TableField(fill = FieldFill.INSERT)//执行insert语句是自动填充默认值0
    private Integer isDeleted;//是否逻辑删除
}
